package m

import org.springframework.dao.DataIntegrityViolationException

class PcController {

    def command

    def index() { }

    def shutdown(){
        println "shutdown pc 30s later..."
        command.shutdown();
        redirect(action: "index") 
    }

    def cancel(){
        println "cancel shutdown pc..."
        command.cancel();
        redirect(action: "index") 
    }

}
